/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.lambkit.module.pay.rpc.model.sql;

import com.lambkit.db.sql.ConditionMode;
import com.lambkit.db.sql.column.Column;
import com.lambkit.db.sql.column.Columns;
import com.lambkit.db.sql.column.Example;

import java.io.Serializable;
import java.util.List;

/**
 * @author Henry 杨勇 (孤竹行) 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2019-11-05
 * @version 1.0
 * @since 1.0
 */
public class PayTypeCriteria extends Columns implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static PayTypeCriteria create() {
		return new PayTypeCriteria();
	}
	
	public static PayTypeCriteria create(Column column) {
		PayTypeCriteria that = new PayTypeCriteria();
		that.add(column);
        return that;
    }

    public static PayTypeCriteria create(String name, Object value) {
        return (PayTypeCriteria) create().eq(name, value);
    }
    
    public Example example() {
    	return Example.create("pay_type", this);
    }
    
    /**
     * equals
     *
     * @param name
     * @param value
     * @return
     */
    public PayTypeCriteria eq(String name, Object value) {
    	super.eq(name, value);
        return this;
    }

    /**
     * not equals !=
     *
     * @param name
     * @param value
     * @return
     */
    public PayTypeCriteria ne(String name, Object value) {
    	super.ne(name, value);
        return this;
    }


    /**
     * like
     *
     * @param name
     * @param value
     * @return
     */

    public PayTypeCriteria like(String name, Object value) {
    	super.like(name, value);
        return this;
    }
    
    public PayTypeCriteria notLike(String name, Object value) {
    	super.notLike(name, value);
        return this;
    }

    /**
     * 大于 great than
     *
     * @param name
     * @param value
     * @return
     */
    public PayTypeCriteria gt(String name, Object value) {
    	super.gt(name, value);
        return this;
    }

    /**
     * 大于等于 great or equal
     *
     * @param name
     * @param value
     * @return
     */
    public PayTypeCriteria ge(String name, Object value) {
    	super.ge(name, value);
        return this;
    }

    /**
     * 小于 less than
     *
     * @param name
     * @param value
     * @return
     */
    public PayTypeCriteria lt(String name, Object value) {
    	super.lt(name, value);
        return this;
    }

    /**
     * 小于等于 less or equal
     *
     * @param name
     * @param value
     * @return
     */
    public PayTypeCriteria le(String name, Object value) {
    	super.le(name, value);
        return this;
    }
    
    public PayTypeCriteria isnull(String name) {
    	super.isnull(name);
        return this;
    } 

    public PayTypeCriteria notNull(String name) {
    	super.notNull(name);
        return this;
    } 
    
    public PayTypeCriteria empty(String name) {
    	super.empty(name);
        return this;
    } 
    
    public PayTypeCriteria notEmpty(String name) {
    	super.notEmpty(name);
        return this;
    } 
    
    public PayTypeCriteria add(Column column) {
    	super.add(column);
    	return this;
    }
    
    /**************************/
	
	public void addCriterion(String name, Object value, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value == null) {
			 throw new RuntimeException("Value for " + property + " cannot be null");
		 }
		 add(Column.create(name, value, logic, typeHandler, valueType));
	}
   
	public void addCriterion(String name, Object value1, Object value2, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value1 == null || value2 == null) {
			 throw new RuntimeException("Between values for " + property + " cannot be null");
		 }
		 add(Column.create(name, value1, value2, logic, typeHandler, valueType));
	}
		 
	public PayTypeCriteria andPayTypeIdIsNull() {
		isnull("pay_type_id");
		return this;
	}
	
	public PayTypeCriteria andPayTypeIdIsNotNull() {
		notNull("pay_type_id");
		return this;
	}
	
	public PayTypeCriteria andPayTypeIdIsEmpty() {
		empty("pay_type_id");
		return this;
	}

	public PayTypeCriteria andPayTypeIdIsNotEmpty() {
		notEmpty("pay_type_id");
		return this;
	}
       public PayTypeCriteria andPayTypeIdEqualTo(java.lang.Integer value) {
          addCriterion("pay_type_id", value, ConditionMode.EQUAL, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }

      public PayTypeCriteria andPayTypeIdNotEqualTo(java.lang.Integer value) {
          addCriterion("pay_type_id", value, ConditionMode.NOT_EQUAL, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }

      public PayTypeCriteria andPayTypeIdGreaterThan(java.lang.Integer value) {
          addCriterion("pay_type_id", value, ConditionMode.GREATER_THEN, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }

      public PayTypeCriteria andPayTypeIdGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_type_id", value, ConditionMode.GREATER_EQUAL, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }

      public PayTypeCriteria andPayTypeIdLessThan(java.lang.Integer value) {
          addCriterion("pay_type_id", value, ConditionMode.LESS_THEN, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }

      public PayTypeCriteria andPayTypeIdLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_type_id", value, ConditionMode.LESS_EQUAL, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }

      public PayTypeCriteria andPayTypeIdBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("pay_type_id", value1, value2, ConditionMode.BETWEEN, "payTypeId", "java.lang.Integer", "Float");
    	  return this;
      }

      public PayTypeCriteria andPayTypeIdNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("pay_type_id", value1, value2, ConditionMode.NOT_BETWEEN, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }
        
      public PayTypeCriteria andPayTypeIdIn(List<java.lang.Integer> values) {
          addCriterion("pay_type_id", values, ConditionMode.IN, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }

      public PayTypeCriteria andPayTypeIdNotIn(List<java.lang.Integer> values) {
          addCriterion("pay_type_id", values, ConditionMode.NOT_IN, "payTypeId", "java.lang.Integer", "Float");
          return this;
      }
	public PayTypeCriteria andPayVendorIdIsNull() {
		isnull("pay_vendor_id");
		return this;
	}
	
	public PayTypeCriteria andPayVendorIdIsNotNull() {
		notNull("pay_vendor_id");
		return this;
	}
	
	public PayTypeCriteria andPayVendorIdIsEmpty() {
		empty("pay_vendor_id");
		return this;
	}

	public PayTypeCriteria andPayVendorIdIsNotEmpty() {
		notEmpty("pay_vendor_id");
		return this;
	}
       public PayTypeCriteria andPayVendorIdEqualTo(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.EQUAL, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayTypeCriteria andPayVendorIdNotEqualTo(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.NOT_EQUAL, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayTypeCriteria andPayVendorIdGreaterThan(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.GREATER_THEN, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayTypeCriteria andPayVendorIdGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.GREATER_EQUAL, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayTypeCriteria andPayVendorIdLessThan(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.LESS_THEN, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayTypeCriteria andPayVendorIdLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.LESS_EQUAL, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayTypeCriteria andPayVendorIdBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("pay_vendor_id", value1, value2, ConditionMode.BETWEEN, "payVendorId", "java.lang.Integer", "Float");
    	  return this;
      }

      public PayTypeCriteria andPayVendorIdNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("pay_vendor_id", value1, value2, ConditionMode.NOT_BETWEEN, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }
        
      public PayTypeCriteria andPayVendorIdIn(List<java.lang.Integer> values) {
          addCriterion("pay_vendor_id", values, ConditionMode.IN, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayTypeCriteria andPayVendorIdNotIn(List<java.lang.Integer> values) {
          addCriterion("pay_vendor_id", values, ConditionMode.NOT_IN, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }
	public PayTypeCriteria andPayMchIdIsNull() {
		isnull("pay_mch_id");
		return this;
	}
	
	public PayTypeCriteria andPayMchIdIsNotNull() {
		notNull("pay_mch_id");
		return this;
	}
	
	public PayTypeCriteria andPayMchIdIsEmpty() {
		empty("pay_mch_id");
		return this;
	}

	public PayTypeCriteria andPayMchIdIsNotEmpty() {
		notEmpty("pay_mch_id");
		return this;
	}
       public PayTypeCriteria andPayMchIdEqualTo(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.EQUAL, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayTypeCriteria andPayMchIdNotEqualTo(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.NOT_EQUAL, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayTypeCriteria andPayMchIdGreaterThan(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.GREATER_THEN, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayTypeCriteria andPayMchIdGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.GREATER_EQUAL, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayTypeCriteria andPayMchIdLessThan(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.LESS_THEN, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayTypeCriteria andPayMchIdLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.LESS_EQUAL, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayTypeCriteria andPayMchIdBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("pay_mch_id", value1, value2, ConditionMode.BETWEEN, "payMchId", "java.lang.Integer", "Float");
    	  return this;
      }

      public PayTypeCriteria andPayMchIdNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("pay_mch_id", value1, value2, ConditionMode.NOT_BETWEEN, "payMchId", "java.lang.Integer", "Float");
          return this;
      }
        
      public PayTypeCriteria andPayMchIdIn(List<java.lang.Integer> values) {
          addCriterion("pay_mch_id", values, ConditionMode.IN, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayTypeCriteria andPayMchIdNotIn(List<java.lang.Integer> values) {
          addCriterion("pay_mch_id", values, ConditionMode.NOT_IN, "payMchId", "java.lang.Integer", "Float");
          return this;
      }
}